Objects Reference

vector::operator[]

Prototype

inline float& operator[](int i)

Parameters

Parameter Type Description
i int index into the vector (0 for x, 1 for y and 2 for z,3 for w)

Remarks

Returns the indexed vector co-ordinate. Index must be between 0 and 3.